//
//  AboutUs.m
//  CarOfHome2
//
//  Created by 微 醺 on 15/9/30.
//  Copyright (c) 2015年 Frank. All rights reserved.
//

#import "AboutUs.h"

@interface AboutUs ()

@property (nonatomic, strong) UIVisualEffectView *blur;

@end

@implementation AboutUs

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    [self headerViewSubView];
    
    UIImageView *image = [[UIImageView alloc] initWithFrame:CGRectMake(0, 64 * SAHeight, self.view.frame.size.width, self.view.frame.size.height - 64 * SAHeight)];
    image.image = [UIImage imageNamed:@"GYWM"];
    [self.view addSubview:image];
    
    //毛玻璃
    self.blur = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleDark]];
    self.blur.frame = CGRectMake(0, 64 * SAHeight, self.view.frame.size.width, self.view.frame.size.height - 64 * SAHeight);
    self.blur.alpha = 0.8;
    [self.view addSubview:self.blur];
    
    [self info];
}

- (void)info
{
    UILabel *JS = [[UILabel alloc] initWithFrame:CGRectMake(20, 100, 250, 80)];
    JS.textColor = [UIColor cyanColor];
    JS.font = [UIFont boldSystemFontOfSize:20];
    JS.text = @" 技 术 指 导 : 森 哥 ";
    [self.view addSubview:JS];
    
    UILabel *KF = [[UILabel alloc] initWithFrame:CGRectMake(20, 150, 150, 80)];
    KF.textColor = [UIColor cyanColor];
    KF.font = [UIFont boldSystemFontOfSize:20];
    KF.text = @" 开 发 人 员 : ";
    [self.view addSubview:KF];
    
    UILabel *RY = [[UILabel alloc] initWithFrame:CGRectMake(140, 115, 150, 200)];
    RY.textColor = [UIColor cyanColor];
    RY.font = [UIFont boldSystemFontOfSize:20];
    RY.text = @"让你微醺的杰哥  让你微醺的家哥  让你微醺的烨哥 ";
    RY.numberOfLines = 0;
    [self.view addSubview:RY];
    
    UILabel *LX = [[UILabel alloc] initWithFrame:CGRectMake(20, 250, 250, 80)];
    LX.textColor = [UIColor cyanColor];
    LX.font = [UIFont boldSystemFontOfSize:20];
    LX.text = @" 森 哥  Q  Q : 791451019 ";
    [self.view addSubview:LX];
    
    UILabel *ZY = [[UILabel alloc] initWithFrame:CGRectMake(20, 300, 350, 80)];
    ZY.textColor = [UIColor cyanColor];
    ZY.font = [UIFont boldSystemFontOfSize:20];
    ZY.text = @" 森 哥 赠 言 : 森哥最喜欢对那些自 ";
    [self.view addSubview:ZY];
    
    UILabel *ZY1 = [[UILabel alloc] initWithFrame:CGRectMake(130, 330, 250, 80)];
    ZY1.textColor = [UIColor cyanColor];
    ZY1.font = [UIFont boldSystemFontOfSize:20];
    ZY1.text = @" 以为能力出众的人出手! ";
    [self.view addSubview:ZY1];
    
    UIImageView *view = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"SC"]];
    view.frame = CGRectMake(0, 415, self.view.frame.size.width, 236);
    [self.view addSubview:view];
    
    
    
}

#pragma mark -- 头部Viwe
- (void)headerViewSubView
{
    UIImageView *Image = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"expert"]];
    Image.frame = CGRectMake(0, 0, self.view.frame.size.width, SAHeight * 64);
    [self.view addSubview:Image];
    UIButton *returnButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [returnButton setImage:[UIImage imageNamed:@"returnButton"] forState:UIControlStateNormal];
    returnButton.frame = CGRectMake(SAWindth * 10, SAHeight * 10, SAWindth * 50, SAHeight * 50);
    [self.view addSubview:returnButton];
    
    [returnButton addTarget:self action:@selector(buttonClicked:) forControlEvents:UIControlEventTouchUpInside];
    
    UILabel *title = [[UILabel alloc] initWithFrame:CGRectMake(SAWindth * 135, SAHeight * 20, SAWindth * 100, SAHeight * 40)];
    title.text = @"关于我们";
    title.textColor = [UIColor whiteColor];
    title.textAlignment = 1;
    [Image addSubview:title];
    
}
/* 返回上一页 */
- (void)buttonClicked:(UIButton *)button
{
    [self dismissViewControllerAnimated:YES completion:^{
        
    }];
}






- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
